<div class="wrap">
	<h2>
		Edit Customer
	</h2>
{if $smarty.session.user_isadmin == "1"}
<div id='ajaxResponse' class="ajaxResponse"></div>
<form name="editcustomer" id="editcustomer" method="post" action="?module={$smarty.get.module}&sub1={$smarty.get.sub1}&id={$smarty.get.id}" onsubmit="onEditCustomer('editcustomer', 'ajaxResponse'); return false;">
	<input type="hidden" name="act" value="editcustomer" />
	<input type="hidden" name="customer_id" value="{$smarty.get.id}" />
	
	<table class="adminform" width="50%" align="center" cellpadding="5">
		<tr>
			<th width="33%" scope="row" valign="top">
			<label for="customer_firstname">{TranslateTag}B_LABEL_FIRSTNAME{/TranslateTag}</label></th>
			<td width="67%">
			<input name="customer_firstname" id="customer_firstname" type="text"
			value="{$THECUSTOMER->customer_firstname}" size="40" maxlength="60"/>
			</td>
		</tr>
		<tr>
			<th width="33%" scope="row" valign="top">
			<label for="customer_lastname">{TranslateTag}B_LABEL_LASTNAME{/TranslateTag}</label></th>
			<td width="67%">
			<input name="customer_lastname" id="customer_lastname" type="text"
			value="{$THECUSTOMER->customer_lastname}" size="40" maxlength="60"/>
			</td>
		</tr>
		<tr>
			<th width="33%" scope="row" valign="top">
			<label for="customer_email">{TranslateTag}B_LABEL_EMAIL{/TranslateTag}<br />(required)</label></th>
			<td width="67%">
			<input name="customer_email" id="customer_email" type="text" 
			value="{$THECUSTOMER->customer_email}" size="40" maxlength="100"/>
			</td>
		</tr>
		<tr>
			<th width="33%" scope="row" valign="middle">
			<label for="customer_password">{TranslateTag}B_LABEL_PASSWORD{/TranslateTag}<br />(twice)</label></th>
			<td width="67%">
				<input name="customer_password" id="customer_password" type="password" value="{$THECUSTOMER->customer_password}" size="40" maxlength="64"/>
				<input name="customer_password2" id="customer_password2" type="password" value="{$THECUSTOMER->customer_password}" size="40" maxlength="64"/>
			</td>
		</tr>
		<tr>
			<td width="67%" colspan="2"  class="submit" align="right">
				<input type="image" name="submit" src="../view/admin/images/object_save.png" value="" />
			</td>
		</tr>
	</table>
</form>
{else}
Access denied
{/if}

</div>
